<template>
  <div class="h-225px page-top">
    <div class="w-95% mx-auto pt-70px flex flex-col text-white">
      <h2 class="font-size-36px lh-50px mb-8px">{{ props.title }}</h2>
      <div class="font-size-18px lh-24px">{{ props.subTitle }}</div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  title: String,
  subTitle: String,
});
</script>

<style lang="less" scoped>
.page-top {
  position: relative;
  background: linear-gradient(90deg, #001985 42%, #2a1f9f 82%);
  padding-top: 70px;

  &::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("/news-bg.png") no-repeat center;
    background-size: cover;
    mix-blend-mode: saturation;
    top: 0;
    left: 0;
  }

  /* 自适应调整 */
  @media (max-width: 768px) {
    padding-top: 40px;
    height: auto;
    text-align: center;

    h2 {
      font-size: 28px;
      line-height: 36px;
      margin-bottom: 6px;
    }

    .font-size-18px {
      font-size: 16px;
      line-height: 22px;
    }
  }
}
</style>

